<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

        .box{
            width: 500px;
            height: 500px;
            border: 5px solid rebeccapurple;
            display: flex;

            transform-style: preserve-3d;

            transform: rotateX(30deg);

        }
        .content{
            align-items: center;
            background: rebeccapurple;
            width: 200px;
            height: 200px;
            margin: auto;
            /* transform: rotateX(30deg); */
            /* transform: rotateY(30deg); */
            /* transform: rotateZ(30deg); */
            transform: rotate3d(1,1,1,30deg);
            /* 前面三个取值0-1 第四个是角度 */
        }



    </style>
</head>
<body>
    
    <div class="box">

        <div class="content">


        </div>

    </div>

</body>
</html>